package com.eamois.action.graph;

import java.util.Collection;

import com.eamois.action.BaseAction;
import com.eamois.domain.graph.GraphJobCardType;
import com.eamois.domain.graph.GraphTechnologyType;
import com.eamois.service.graph.GraphTechnologyTypeService;
import com.eamois.util.ServiceFactory;

public class GraphTechnologyTypeAction extends BaseAction {
	private GraphTechnologyTypeService graphTechnologyTypeService ;

	public GraphTechnologyTypeService getGraphTechnologyTypeService() {
		return graphTechnologyTypeService;
	}


	public void setGraphTechnologyTypeService(
			GraphTechnologyTypeService graphTechnologyTypeService) {
		this.graphTechnologyTypeService = graphTechnologyTypeService;
	}


	public GraphTechnologyTypeAction() {
		setGraphTechnologyTypeService((GraphTechnologyTypeService) ServiceFactory.getInstance()
				.getBean("graphTechnologyTypeService"));
	}
	

	public Collection<GraphTechnologyType> findAll(){
		return this.getGraphTechnologyTypeService().findAll();
	}
	public Collection<GraphTechnologyType>findTechTypeByJobCardType(GraphJobCardType graphJobCardType){
		return this.getGraphTechnologyTypeService().findTechTypeByJobCardType(graphJobCardType);
	}
	public void save(GraphTechnologyType type){
		 this.getGraphTechnologyTypeService().save(type);
	}
	public void remove(GraphTechnologyType type){
		 this.getGraphTechnologyTypeService().remove(type);
	}

}
